from django.views.generic import CreateView
from django.urls import reverse_lazy

from .forms import CreationForm


class SignUp(CreateView):
    """Регистрация нового пользователя."""
    form_class = CreationForm
    success_url = reverse_lazy("signup")
    template_name = "users/signup.html"
